package com.qf.spring004.advice;

import org.springframework.aop.ThrowsAdvice;
//异常通知
public class MyThrowsAdvice implements ThrowsAdvice {
    public void afterThrowing(Exception ex){
        System.out.println("MyThrowsAdvice 被调用了");
        System.out.println(ex.getMessage());
    }
}
